<nav class="navbar navbar-default" role="navigation">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" routerLink="/">AngularJs</a>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse navbar-ex1-collapse">
        <ul class="nav navbar-nav">
            <li><a routerLink="/" routerLinkActive="active" [routerLinkActiveOptions]="{exact:true}">首页</a></li>
            <li><a routerLink="/list">列表展示</a></li>
            <li><a [routerLink]="['/detail']" [queryParams]="{id:23}">列表详情</a></li>
            <li><a routerLink="/form">表单提交</a></li>
            <li><a routerLink="/user">用户信息</a></li>
            <li><a routerLink="/404">404页面</a></li>
        </ul>

    </div>
</nav>

<router-outlet></router-outlet>
